﻿using System;
using System.Web;

namespace Pixysoft.Framework.Comet
{
    public interface ICometMessageHelper
    {
        /// <summary>
        /// 比如是无权限页面 否则下载失败
        /// </summary>
        /// <param name="response"></param>
        /// <param name="message"></param>
        void DoResponse(HttpResponse response, ICometMessage message);


        void SetImage(ICometMessage message, byte[] content);

        void SetAttachment(ICometMessage message, string filename, byte[] content);

        void SetText(ICometMessage message, string content);

    }
}
